package com.quanyan.place.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.quanyan.place.entity.TbAcResource;
import com.quanyan.place.entity.TbAdminUser;
import com.quanyan.place.entity.TbAdminUserExample;

public interface TbAdminUserMapper {
    int countByExample(TbAdminUserExample example);

    int deleteByExample(TbAdminUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbAdminUser record);

    int insertSelective(TbAdminUser record);

    List<TbAdminUser> selectByExample(TbAdminUserExample example);

    TbAdminUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbAdminUser record, @Param("example") TbAdminUserExample example);

    int updateByExample(@Param("record") TbAdminUser record, @Param("example") TbAdminUserExample example);

    int updateByPrimaryKeySelective(TbAdminUser record);

    int updateByPrimaryKey(TbAdminUser record);
    
    /**
     * 获取用户可以访问的资源
     * @param userId
     * @return
     */
    List<TbAcResource>   getUserResource(Integer userId);
    
}